package repository

import "sitego/app/infrastructure/model"

type AdminRepository struct {
}

// IsEmailExist 判断 Email 已被注册
func IsEmailExist(email string) bool {
	return model.GetExists(model.Admin{}, model.Admin{Account: email})
}

// IsPhoneExist 判断手机号已被注册
func IsPhoneExist(mobile string) bool {
	return model.GetExists(model.Admin{}, model.Admin{Mobile: mobile})
}
